package com.cpecc.model.wuzi;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.cpecc.model.system.User;
@Entity
@Table(name = "DATA_WUZI_PANDIAN")
public class PanDian implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 3690641761209040101L;

	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(length = 32)
	private String id;
	
	@ManyToOne
	@JoinColumn(name="BUPEI_ID")
	private BuPei buPei;
	
	@ManyToOne
	@JoinColumn(name="YIJIAO_ID")
	private YiJiao yiJiao;
	
	@Column
	private Date faQiRQ;
	
	@ManyToOne
	@JoinColumn(name="WUZI_ID")
	private WuZi wuZi;
	
	@ManyToOne
	@JoinColumn(name="FANKUIR_ID")
	private User fanKuiR;
	
	@Column
	private Date fanKuiRQ;
	
	@Column(length=16)
	private String panDianJieGuo;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public BuPei getBuPei() {
		return buPei;
	}

	public void setBuPei(BuPei buPei) {
		this.buPei = buPei;
	}

	public YiJiao getYiJiao() {
		return yiJiao;
	}

	public void setYiJiao(YiJiao yiJiao) {
		this.yiJiao = yiJiao;
	}

	public Date getFaQiRQ() {
		return faQiRQ;
	}

	public void setFaQiRQ(Date faQiRQ) {
		this.faQiRQ = faQiRQ;
	}

	public WuZi getWuZi() {
		return wuZi;
	}

	public void setWuZi(WuZi wuZi) {
		this.wuZi = wuZi;
	}

	public User getFanKuiR() {
		return fanKuiR;
	}

	public void setFanKuiR(User fanKuiR) {
		this.fanKuiR = fanKuiR;
	}

	public Date getFanKuiRQ() {
		return fanKuiRQ;
	}

	public void setFanKuiRQ(Date fanKuiRQ) {
		this.fanKuiRQ = fanKuiRQ;
	}

	public String getPanDianJieGuo() {
		return panDianJieGuo;
	}

	public void setPanDianJieGuo(String panDianJieGuo) {
		this.panDianJieGuo = panDianJieGuo;
	}

	public PanDian(String id, BuPei buPei, YiJiao yiJiao, Date faQiRQ,
			WuZi wuZi, User fanKuiR, Date fanKuiRQ, String panDianJieGuo) {
		super();
		this.id = id;
		this.buPei = buPei;
		this.yiJiao = yiJiao;
		this.faQiRQ = faQiRQ;
		this.wuZi = wuZi;
		this.fanKuiR = fanKuiR;
		this.fanKuiRQ = fanKuiRQ;
		this.panDianJieGuo = panDianJieGuo;
	}

	public PanDian() {
		super();
	}	
}
